﻿using HCMS.CommonDtos;
using HCMS.Entities.Manage;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace HCMS.IRepositories.Manage
{
	/// <summary>
	/// 管理员 仓储接口
	/// </summary>
	public interface IAdminRepository : ICommonRepository<Admin, int>
	{
		/// <summary>
		/// 管理 列表
		/// </summary>
		/// <param name="searchArgs">搜索 参数</param>
		/// <param name="pager">分页 参数</param>
		/// <returns></returns>
		Task<ListPagerDto<Admin>> ManageList(SearchArgsDto searchArgs, PagerArgsDto pager);

		/// <summary>
		/// 获取全部管理员
		/// </summary>
		/// <returns></returns>
		Task<List<Admin>> AllList();

		/// <summary>
		/// 判断管理员是否存在
		/// </summary>
		/// <param name="adminName">管理员 名称</param>
		/// <returns></returns>
		Task<bool> IsExist(string adminName);
	}
}
